# -*- coding: utf-8 -*-
{
  :'es-AR' => {

    :authlogic => {
      :error_messages => {
        :email_invalid => "deberia parecer una direccion email."
      }
    },
    
    :years    => "años",
    :months   => "meses",
    :weeks    => "semanas",
    :days     => "dias",
    :hours    => "horas",
    :minutes  => "minutos",
    :seconds  => "segundos",
    
    :date => {
      :formats => {
        :default      => "%e/%m/%Y",
        :db      => "%e/%m/%Y",
        :short        => "%e %b",
        :long         => "%e de %B de %Y",
        :month_year         => "%B de %Y",
        :only_day     => "%e",
        :month_name   => "%b",
        :full_month_name =>"%B",
        :abbr_day_names =>"%a",
        :day_name      => "%A",
        :date => "%d/%m/%Y"
      },
      :day_names      => %w(Domingo Lunes Martes Miércoles Jueves Viernes Sábado),
      :abbr_day_names => %w(Dom Lun Mar Mie Jue Vie Sab),
      :month_names    => [nil] + %w(Enero Febrero Marzo Abril Mayo Junio Julio Agosto Setiembre Octubre Noviembre Diciembre),
      :abbr_month_names => [nil] + %w(Ene Feb Mar Abr May Jun Jul Ago Set Oct Nov Dic),
      :order          => [:day, :month, :year]
    },
    :time => {
      :formats => {
        :default      => "%A, %e de %B de %Y, %H:%M hs",
        :db      => "%e/%m/%Y",
        :time         => "%H:%M hs",
        :just_time         => "%H:%M",
        :short        => "%e/%m, %H:%M hs",
        :long         => "%A, %e de %B de %Y, %H:%M hs",
        :only_second  => "%S",
        :day_name      => "%A",
        :date => "%d/%m/%Y"
      },
      :datetime => {
        :formats => {
          :default => "%d/%m/%Y-%dT%H:%M:%S%Z",
          :db      => "%e/%m/%Y",
          :date => "%d/%m/%Y"
        }
      },
      :time_with_zone => {
        :formats => {
          :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
        }
      },
      :am => 'am',
      :pm => 'pm'
    },

    :support => {
      :array => {
        :words_connector => ", ",
        :two_words_connector => " y ",
        :last_word_connector => ", y "
      },

  		:select => {
    		:prompt => "Por favor selecciona"
			}
		},
    # date helper distancia en palabras
    #NOTE: Pluralization rules have changed! Rather than simply submitting an array, i18n now allows for a hash with the keys:
    # :zero, :one & :other   - FUNKY (but a pain to find...)!
    :datetime => {
      :distance_in_words => {
        :half_a_minute       => 'medio minuto',
        :less_than_x_seconds => {:zero => 'menos de 1 segundo', :one => 'menos de 1 segundo', :other => 'menos de {{count}} segundos'},
        :x_seconds           => {:one => '1 second', :other => '{{count}} seconds'},
        :less_than_x_minutes => {:zero => 'menos de 1 minuto', :one => 'menos de 1 minuto', :other => 'menos de {{count}} minutos'},
        :x_minutes           => {:one => "1 minuto", :other => "{{count}} minutos"},
        :about_x_hours       => {:one => 'aproximadamente 1 hora', :other => 'aproximadamente {{count}} horas'},
        :x_days              => {:one => '1 día', :other => '{{count}} días'},
        :about_x_months      => {:one => 'aproximandamente 1 mes', :other => 'aproximadamente {{count}} mes'},
        :x_months            => {:one => '1 mes', :other => '{{count}} mes'},
        :about_x_years       => {:one => 'aproximadamente 1 año', :other => 'aproximadamente {{count}} años'},
        :over_x_years        => {:one => 'más de 1 año', :other => 'más de {{count}} años'},
        :almost_x_years      => {:one => "casi 1 año",:other=>"casi %{count} años"},
        :order          => [:year,:month,:day,:hour,:minute,:second]
      },
      :prompts => {
        :year=> 'Año',
        :month=> 'Mes',
        :day=> 'Día',
        :hour=> 'Hora',
        :minute=> 'Minuto',
        :second=> 'Segundos'}
    },   

    # numbers
    :number => {
      :format => {
        :precision => 2,
        :separator => '.',
        :delimiter => ','
      },
      :currency => {
        :format => {
          :unit => 'Gs.',
          :precision => 0,
          :format => '%u %n',
          :separator => ',',
          :delimiter => '.'
        }
      }
    },

    # Active Record
    :activerecord => {
      :errors => {
        :template => {
          :header => {
            :one => "{{model}} no pudo guardarse: 1 error", 
            :other => "{{model}}: {{count}} errores."
          },
          :body => "Por favor revise los campos siguientes:"
        },
        :messages => {
          :inclusion => " no está incluido en la lista",
          :exclusion => " no está disponible",
          :invalid => " no es válido",
          :record_invalid => " no es valido",
          :confirmation => " no coincide con la confirmacion",
          :accepted  => " debe ser aceptado",
          :empty => "-no puede estar vacío",
          :blank => "-no puede estar en blanco",
          :too_long => " es demasiado largo (no más de {{count}} caracteres)",
          :too_short => " es demasiado corto (no menos de {{count}} caracteres)",
          :wrong_length => " no tiene la longitud correcta (debe ser de {{count}} caracteres)",
          :taken => " no está disponible",
          :not_a_number => " no es un número",
          :greater_than => " debe ser mayor a {{count}}",
          :greater_than_or_equal_to => " debe ser mayor o igual a {{count}}",
          :equal_to => " debe ser igual a {{count}}",
          :less_than => " debe ser menor que {{count}}",
          :less_than_or_equal_to => " debe ser menor o igual que {{count}}",
          :odd => " debe ser par",
          :even => " debe ser impar"
        }
      }
    }
  }
}

